home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Subject: Re: Q:Hex to Decimal?
- Message-ID: <DpuM6F.8Mq@rci.ripco.com>
- X-Nntp-Sender: mambuhl@foley.ripco.com
- Sender: usenet@rci.ripco.com (Net News Admin)
- Organization: Ripco Internet BBS Chicago
- Date: Sun, 14 Apr 1996 10:51:50 GMT
-
- huang@mnsinc.com (Szu-Wen Huang) in <4klr9f$29d@news1.mnsinc.com>
- corrected my <DpqLyJ.8Jy@rci.ripco.com>:
-
- >: sprintf(target_string,"x",(unsigned)your_integer);
-
- >Which prints an "x" to your string and formats your hard disk if you
- >have a mean C compiler. :) Try "%x" as the format string.
-
- Thanks for the correction. However, since in my erroneous line
- (unsigned)your_integer is an excess argument, and the behavior for such
- is defined (ISO 7.9.6.1, lines 3-5 of description), it will take worse
- than a "mean C compiler" to format my hard disk. It will take a broken
- one.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-